<template>
  <div class="fullscene">
    <div class="appMap"></div>
    <!-- <div class="btn">
      <a @click="handleExportModel">导出模型</a>
      <a @click="handleExportImage">导出图片</a>
    </div> -->
  </div>
</template>

<script>
import { onMounted } from 'vue'

import { Map3d } from './index.js'
export default {
  name: 'FzMap',
  setup() {
    let FzMap = null
    onMounted(() => {
      FzMap = new Map3d('.appMap')
      //   FzMap.start()
      console.log(FzMap)
    })
    const handleExportModel = () => {
      FzMap.exportModel()
    }
    const handleExportImage = () => {
      FzMap.exportImage()
    }
    return {
      handleExportModel,
      handleExportImage,
    }
  },
}
</script>

<style lang="scss">
.fullscene {
  width: 100%;
  height: 100%;
}
.appMap {
  width: 100%;
  height: 100%;
  .mapLabel {
    font-size: 12px;
    color: #fff;
    text-shadow: 0.5px 0.5px #48c1ff;
  }
  .barLabel {
    font-size: 12px;
    color: #fff;
    text-shadow: 1px 1px #48c1ff;
    .sort {
      display: inline-block;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      text-align: center;
      background-color: #fff;
      color: #000;
      text-shadow: none;
    }
  }
}
.btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 999;
  color: #fff;
}
</style>
